<include file="Public/head"/>
<body class="no-skin">
<include file="Public/header"/>
		<div class="main-container" id="main-container">
			<script type="text/javascript">
				try{ace.settings.check('main-container' , 'fixed')}catch(e){}
			</script>
			<include file="Public/sidebar"/>
				<div class="main-content">
                    <include file="Public/breadcrumbs"/>
					<div class="page-content">
                    	<include file="Public/set"/>
						<div class="row">
							<div class="col-xs-12">
								<!-- PAGE CONTENT BEGINS -->

								<div class="space-6"></div>

								<div class="row">
									<div class="col-sm-10 col-sm-offset-1">
										<div class="widget-box transparent invoice-box">
											<div class="widget-header widget-header-large">
												<h3 class="grey lighter pull-left position-relative">
													<i class="icon-leaf green"></i>
													订单详情
												</h3>

												<div class="widget-toolbar no-border invoice-info">
													<span class="invoice-info-label">订单编号:</span>
													<span class="red">{$val.ref}</span>
													<br />
													<span class="invoice-info-label">订单日期:</span>
													<span class="blue">{$val.date_order}</span>
												</div>
												<div class="widget-toolbar hidden-480">
													<a href="javascript:printme()" target="_self">
														<i class="icon-print">打印订单</i>
													</a>
												</div>
                                                <script> 
                                                    function printme(){ 
                                                        document.body.innerHTML=document.getElementById('widget-body').innerHTML
                                                        window.print(); 
                                                    } 
                                                </script> 
											</div>
											<div class="widget-body" id="widget-body">
                                            	<style>
													.contect_list_info{ width:93%; margin-top:10px; }
													.contect_list_info dl{ width:100%; float:left;font-size:14px; margin:0px; border-bottom:1px dashed #ccc;word-break: break-all; word-wrap:break-word;-webkit-box-flex: 1; overflow:hidden;}
													.contect_list_info dl dt{ width:100px; float:left; color:#666;line-height:230%; text-align:right}
													.contect_list_info dl dd{color:#999;line-height:220%; text-indent:1em;}
													.list_width{ width:50% !important; }
												</style>
												<div class="widget-main padding-24">
													<div class="row">
														<div class="col-sm-6">
															<div class="row">
																<div class="col-xs-11 label label-lg label-info arrowed-in arrowed-right">
																	<b>订单基本信息</b>
																</div>
															</div>

															<div class='contect_list_info'>
                                                            	<dl class="list_width">
                                                                	<dt>来源：</dt>
                                                                    <dd>{$val.channel_code} ({:customer_source($val['channel_code'])})</dd>
                                                                </dl>
                                                                <dl class="list_width">
                                                                	<dt>贸易模式：</dt>
                                                                    <dd>{$val.trade_pattern}</dd>
                                                                </dl>
                                                                <dl class="list_width">
                                                                	<dt>买家账号：</dt>
                                                                    <dd>{$val.buyer}</dd>
                                                                </dl>
                                                                <dl class="list_width">
                                                                	<dt>卖家账号：</dt>
                                                                    <dd>{$val.seller}</dd>
                                                                </dl>
                                                                <dl>
                                                                	<dt>ERP同步：</dt>
                                                                    <dd>
                                                                    	<switch name="val.erp_order_sync">
                                                                        	<case value="0">未同步</case>
                                                                        	<case value="1">同步失败</case>
                                                                        	<case value="2">同步成功</case>
                                                                        </switch>
                                                                        <notempty name="val.erp_sync_error_info"><span style="color:red; margin-left:10px;">错误原因：{$val.erp_sync_error_info}</span></notempty>
                                                                    </dd>
                                                                </dl>
                                                                <dl>
                                                                	<dt>清关状态：</dt>
                                                                    <dd>
                                                                    	<switch name="val.wx_order_sync">
                                                                        	<case value="0">未清关</case>
                                                                        	<case value="1">申请失败</case>
                                                                        	<case value="2">申请成功</case>
                                                                        	<case value="3">清关失败</case>
                                                                        	<case value="4">清关成功</case>
                                                                        </switch>
                                                                        <notempty name="val.wx_order_error_info"><span style="color:red; margin-left:10px;">错误原因：{$val.wx_order_error_info}</span></notempty>
                                                                    </dd>
                                                                </dl>
                                                                <dl class="list_width">
                                                                	<dt>企业编号：</dt>
                                                                    <dd>{$val.ebpCode}</dd>
                                                                </dl>
                                                                <dl class="list_width">
                                                                	<dt>创建时间：</dt>
                                                                    <dd>{$val.create_time}</dd>
                                                                </dl>
                                                                <span style=" clear:both"></span>
															</div>
														</div><!-- /span -->

														<div class="col-sm-6">
															<div class="row">
																<div class="col-xs-11 label label-lg label-success arrowed-in arrowed-right">
																	<b>收货人信息</b>
																</div>
															</div>
															
															<div class='contect_list_info'>
                                                            	<dl class="list_width">
                                                                	<dt>订购人姓名：</dt>
                                                                    <dd>{$val.buyer_name}</dd>
                                                                </dl>
                                                                <dl class="list_width">
                                                                	<dt>订购人账号：</dt>
                                                                    <dd>{$val.buyer_reg_no}</dd>
                                                                </dl>
                                                                <dl class="list_width">
                                                                	<dt>证件类型：</dt>
                                                                    <dd>
                                                                    	<switch name="val.buyer_id_type">
                                                                        	<case value="1">身份证</case>
                                                                        </switch>
                                                                    </dd>
                                                                </dl>
                                                                <dl class="list_width">
                                                                	<dt>证件号码：</dt>
                                                                    <dd>{:cardHidden($val['buyer_id_card'])}</dd>
                                                                </dl>
                                                                <dl>
                                                                	<dt>收货信息：</dt>
                                                                    <dd>{$val['receive_info']}</dd>
                                                                </dl>
															</div>
														</div><!-- /span -->
													</div><!-- row -->

													<div class="space"></div>

													<div>
														<table class="table table-striped table-bordered">
															<thead>
																<tr>
																	<th>SKU</th>
																	<th>图片</th>
																	<th>名称</th>
																	<th>单价</th>
																	<th>购买数量</th>
																	<th>商品总价</th>
																	<th>税</th>
																	<th>含税总价</th>
																</tr>
															</thead>

															<tbody>
                                                            <volist name="val.order_line" id="vo">
																<tr>
																	<td>{$vo.sku}</td>
																	<td><img src="{$vo.thumb}" width="80" style="padding:5px;" /></td>
																	<td>{$vo.name}</td>
																	<td>{$vo.price}</td>
																	<td>{$vo.num}</td>
																	<td>{$vo.sub_total_untaxed}</td>
																	<td>{$vo.tax_fee}</td>
																	<td>{$vo.sub_total}</td>
																</tr>
                                                            </volist>
															</tbody>
														</table>
													</div>
													<div class="hr hr8 hr-double hr-dotted"></div>
													<div class="row">
														<div class="col-sm-5 pull-right">
															<h4 class="pull-right" style="line-height:140%;">
																
                                                                快递邮费 ：<eq name="val.delivery_fee" value="0"> 包邮<else /> ${$val.delivery_fee} 元</eq><br>
                                                                <neq name="val.discount" value="0">优惠金额 ： ${$val.discount}<br></neq>
                                                                订单总价 ：
																<span class="red">${$val.amount_total} 元<neq name="val.total_import_taxes" value="0">(已含税：{$val.total_import_taxes}元)</span></neq>
															</h4>
														</div>
													</div>
													<style>
                                                    	.pay_ment_info{ width:100%; }
														.pay_ment_info dl dt{ width:100%; height:40px; line-height:40px; font-size:16px; border-bottom:1px solid #ccc; text-indent:10px;}
														.pay_ment_info dl dd{ float:left; line-height:220%; width:100%; text-indent:20px; color:#666 }
														.pay_ment_info dl dd span{ color:#333; }
                                                    </style>
													<div class="space-6"></div>
													<div class="pay_ment_info">
                                                    	<dl>
                                                        	<dt>支付信息</dt>
                                                            <dd><span>是否支付：</span><eq name="val.state" value="0"><span style="color:red">未支付</span><else />已支付</eq></dd>
                                                            <eq name="val.state" value="1">
                                                            <dd><span>支付方式：</span>
                                                            	<switch name="val.order_payment.payment_account">
                                                                	<case value="weixin">微信</case>
                                                                	<case value="alipay">支付宝</case>
                                                                	<case value="pcupacp">银联</case>
                                                                </switch>
                                                            </dd>
                                                            <dd><span>支付金额：</span>{$val.order_payment.payamount}</dd>
                                                            <dd><span>支付流水号：</span>{$val.order_payment.payment_no}</dd>
                                                            <dd><span>支付成功时间：</span>{$val.order_payment.create_time}</dd>
                                                            </eq>
                                                        </dl>
                                                    </div>
												</div>
											</div>
										</div>
									</div>
								</div>

								<!-- PAGE CONTENT ENDS -->
							</div><!-- /.col -->
						</div><!-- /.row -->
					</div><!-- /.page-content -->
				</div><!-- /.main-content -->
			</div><!-- /.main-container-inner -->
		</div>
        <include file="Public/footer"/>
        <include file="Public/footerjs"/>
</body>
</html>
